* xselect.c (symbol_to_x_atom, x_get_foreign_selection): Use
authorKen Raeburn <raeburn@raeburn.org>
Mon, 20 May 2002 08:06:57 +0000 (08:06 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Mon, 20 May 2002 08:06:57 +0000 (08:06 +0000)
SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.

src/xselect.c

index c95cc211c1dfe1786aa92f62e5895b1a65445e3d..a92943c5381fcb3cf1e650c53b022517107efcf2 100644 (file)
@@ -200,9 +200,9 @@ symbol_to_x_atom (dpyinfo, display, sym)
 #endif
   if (!SYMBOLP (sym)) abort ();
 
-  TRACE1 (" XInternAtom %s", (char *) XSYMBOL (sym)->name->data);
+  TRACE1 (" XInternAtom %s", (char *) XSTRING (SYMBOL_NAME (sym))->data);
   BLOCK_INPUT;
-  val = XInternAtom (display, (char *) XSYMBOL (sym)->name->data, False);
+  val = XInternAtom (display, (char *) XSTRING (SYMBOL_NAME (sym))->data, False);
   UNBLOCK_INPUT;
   return val;
 }
@@ -1272,7 +1272,7 @@ x_get_foreign_selection (selection_symbol, target_type)
   if (NILP (XCAR (reading_selection_reply)))
     error ("Timed out waiting for reply from selection owner");
   if (EQ (XCAR (reading_selection_reply), Qlambda))
-    error ("No `%s' selection", XSYMBOL (selection_symbol)->name->data);
+    error ("No `%s' selection", XSTRING (SYMBOL_NAME (selection_symbol))->data);
 
   /* Otherwise, the selection is waiting for us on the requested property.  */
   return